<%@ page contentType="text/html; charset=utf-8" language="java"  errorPage="" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
-->
</style>
<script>
var  highlightcolor='#d5f4fe';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
function  changeto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=highlightcolor;
}
}

function  changeback(){
if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
return
if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
//source.style.backgroundColor=originalcolor
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}

function  clickto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=clickcolor&&source.id!="nc")
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=clickcolor;
}
else
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}
</script>


</head>

<body>
<form action="/schoolBase/operatSchoolBase.do?action=update" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="/images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 管理学校基本信息</span></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="STYLE1">
                  &nbsp;&nbsp;<img src="/images/add.gif" width="10" height="10" /> 添加   &nbsp; <img src="/images/del.gif" width="10" height="10" /> 删除    &nbsp;&nbsp;<img src="/images/edit.gif" width="10" height="10" /> 编辑   &nbsp;</span><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="50%" border="0" cellpadding="0" align="center" cellspacing="1" bgcolor="#a8c7ce" onmouseover="changeto()"  onmouseout="changeback()">
    
		<tr>       
        <td width="15%" height="30" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">学校名称</span></div></td>
		<td height="30" width="35%" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">
			<input type="text" name="schoolBase.xxmc" value="${schoolBase.xxmc}" /><input type="hidden" name="schoolBase.id" value="${schoolBase.id}"  />
			<input type="hidden" name="schoolBase.password" value="${schoolBase.password}"  />
		</span></div></td>
		</tr>
		<tr>       
        <td width="15%" height="30" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">学校代码</span></div></td>
		<td height="30" width="35%" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">
			<input type="text" name="schoolBase.xxdm" value="${schoolBase.xxdm}" />
		</span></div></td>
		</tr>
		<tr>       
        <td width="15%" height="30" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">学校地址</span></div></td>
		<td height="30" width="35%" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">
			<input type="text" name="schoolBase.xxdz" value="${schoolBase.xxdz}" />
		</span></div></td>
		</tr>
		<tr>       
        <td width="15%" height="30" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">校长姓名</span></div></td>
		<td height="30" width="35%" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">
			<input type="text" name="schoolBase.xzxm" value="${schoolBase.xzxm}" />
		</span></div></td>
		</tr>
		<tr>       
        <td width="15%" height="30" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">联系电话</span></div></td>
		<td height="30" width="35%" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">
			<input type="text" name="schoolBase.lxdh" value="${schoolBase.lxdh}" />
		</span></div></td>
		</tr>
		<tr>       
        <td width="15%" height="30" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">学校类型</span></div></td>
		<td height="30" width="35%" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">
			<input type="text" name="schoolBase.xxlx" value="${schoolBase.xxlx}" />
		</span></div></td>
		</tr>
		<tr>       
        <td width="15%" height="30" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">行政区划码</span></div></td>
		<td height="30" width="35%" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">
			<input type="text" name="schoolBase.xzqhm" value="${schoolBase.xzqhm}" />
		</span></div></td>
		</tr>
		<tr>       
        <td width="15%" height="30" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">行政区名称</span></div></td>
		<td height="30" width="35%" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">
			<input type="text" name="schoolBase.xzqmc" value="${schoolBase.xzqmc}" />
		</span></div></td>
		</tr>	
    </table></td>
  </tr>  
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td align="center"><input type="submit" value="修改" /> 
	    		<input type="reset" value="重置" /> </td>
	</tr>
</table>
</form>
</body>
</html>
